package com.zhouheng.springbootmultithreading.tuling.lock;

/**
 * 一个字段分高低位保存演示
 * 例如：int 00000000 00000000 00000000 00000000
 * 总共32位，高16位读写，低16写锁
 */
public class HighAndLowTest {

    public static void main(String[] args) {
        int state = 1 << 16;
        System.out.println(state);
        System.out.println(Math.pow(2, 16));
        System.out.println(state >> 16);
    }

}
